<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get resource introspection of service</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.gupnp-service-info-get-introspection" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">gupnp_service_info_get_introspection</h1>
  <p class="verinfo">(PECL gupnp &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">gupnp_service_info_get_introspection</span> &mdash; <span class="dc-title">Get resource introspection of service</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.gupnp-service-info-get-introspection-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>gupnp_service_info_get_introspection</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$proxy</code></span>
   [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$callback</code></span>
   [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$arg</code></span>
  ]] ) : <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span></div>

  <p class="para rdfs-comment">
   Get resource introspection of service or register callback if corresponding parameter was passed.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.gupnp-service-info-get-introspection-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">proxy</code></dt>

     <dd>

      <p class="para">
       A service proxy identifier.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">callback</code></dt>

     <dd>

      <p class="para">
       The callback function to be called when introspection object is ready.
       Typically, callback function takes on three parameters. The <code class="parameter">introspection</code> 
       parameter&#039;s identifier being the first, <code class="parameter">error</code> parameter&#039;s message 
       being the second, and the <code class="parameter">arg</code> is third.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">arg</code></dt>

     <dd>

      <p class="para">
       User data for <code class="parameter">callback</code>. 
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.gupnp-service-info-get-introspection-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Return true if callback function was defined.
   Return introspection identifier if callback function was omited.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.gupnp-service-info-get-introspection-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   Issues E_WARNING with not valid callback function. 
  </p>
 </div>


</div></div></div></body></html>